package com.ycfmedical.bed.present;

import com.ycfmedical.bed.Constants;
import com.ycfmedical.bed.local.entity.BillRecords;
import com.ycfmedical.bed.ui.fragment.HisMedicalrecordsFragment;
import com.ycfmedical.bed.utils.TimeUtil;

import java.util.ArrayList;
import java.util.List;

import cn.droidlover.xdroidmvp.mvp.XPresent;

/**
 * Created by yf on 2017-05-01.
 */

public class HisMedicalRecordsPresent extends XPresent<HisMedicalrecordsFragment>{
    public void loadData() {

        List<BillRecords> hisMedicalRecordsList=new ArrayList<>();
        hisMedicalRecordsList.add(setData("时间","意识","体温","脉搏","呼吸","血压","血氧","吸氧","皮肤","骨骼","病情观察情况"));
        hisMedicalRecordsList.add(setData("2017-3-28",
                "清醒","36.5"+ Constants.TEMPSYMBOM,"151","22","127/90","98%","98%","1","正常","好转较多"));
    getV().showData(hisMedicalRecordsList);
    }

    private BillRecords setData(String time, String yishi, String temp, String maibo, String breath,
                                String blood, String bloodOx, String breathOx, String skin, String bone, String patientCondition) {
        BillRecords billRecords=new BillRecords();
        billRecords.setExcelC1(time);
        billRecords.setExcelC2(yishi);
        billRecords.setExcelC3(temp);
        billRecords.setExcelC4(maibo);
        billRecords.setExcelC5(breath);
        billRecords.setExcelC6(blood);
        billRecords.setExcelC7(bloodOx);
        billRecords.setExcelC8(breathOx);
        billRecords.setExcelC9(skin);
        billRecords.setExcelC10(bone);
        billRecords.setExcelC11(patientCondition);

        return  billRecords;
    }
}
